package com.auth.manager.web.dict;

import com.auth.manager.common.resp.Result;
import com.auth.manager.service.dict.StandardCodeItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version 1.0.0
 * @Date: 2022/5/12 16:47
 * @Author ZhuYouBin
 * @Description 标准代码
 */
@RestController
@RequestMapping("/standardCode")
public class StandardCodeController {

    @Autowired
    private StandardCodeItemService standardCodeItemService;

    @GetMapping("/getStandardCode")
    public Result getStandardCode(@RequestParam("codeNames") String codeNames) {
        return Result.success().setData(standardCodeItemService.getStandardCode(codeNames));
    }

}
